package com.medical.doctor.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.medical.doctor.mapper.MedicalMedicMapper;
import com.medical.doctor.domain.MedicalMedic;
import com.medical.doctor.service.IMedicalMedicService;

/**
 * 医生列表Service业务层处理
 * 
 * @author medical
 * @date 2024-07-28
 */
@Service
public class MedicalMedicServiceImpl implements IMedicalMedicService 
{
    @Autowired
    private MedicalMedicMapper medicalMedicMapper;

    /**
     * 查询医生列表
     *
     * @param id 医生列表主键
     * @return 医生列表
     */
    @Override
    public Long selectMedicalMedicById(Long id)
    {
        Long l = medicalMedicMapper.selectMedicalMedicById(id);
        return l;
    }

    /**
     * 查询医生列表列表
     * 
     * @param medicalMedic 医生列表
     * @return 医生列表
     */
    @Override
    public List<MedicalMedic> selectMedicalMedicList(MedicalMedic medicalMedic)
    {
        return medicalMedicMapper.selectMedicalMedicList(medicalMedic);
    }

    /**
     * 新增医生列表
     * 
     * @param medicalMedic 医生列表
     * @return 结果
     */
    @Override
    public int insertMedicalMedic(MedicalMedic medicalMedic)
    {
        return medicalMedicMapper.insertMedicalMedic(medicalMedic);
    }

    /**
     * 修改医生列表
     * 
     * @param medicalMedic 医生列表
     * @return 结果
     */
    @Override
    public int updateMedicalMedic(MedicalMedic medicalMedic)
    {
        return medicalMedicMapper.updateMedicalMedic(medicalMedic);
    }

    /**
     * 批量删除医生列表
     * 
     * @param ids 需要删除的医生列表主键
     * @return 结果
     */
    @Override
    public int deleteMedicalMedicByIds(Long[] ids)
    {
        return medicalMedicMapper.deleteMedicalMedicByIds(ids);
    }

    /**
     * 删除医生列表信息
     * 
     * @param id 医生列表主键
     * @return 结果
     */
    @Override
    public int deleteMedicalMedicById(Long id)
    {
        return medicalMedicMapper.deleteMedicalMedicById(id);
    }
}
